Inventory theory